Optimal. Leaf size=53 \[ -\frac {\tanh ^{-1}\left (\frac {\sqrt {a \sec ^2(x)}}{\sqrt {a}}\right )}{a^{3/2}}+\frac {1}{a \sqrt {a \sec ^2(x)}}+\frac {1}{3 \left (a \sec ^2(x)\right )^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3657, 4124, 51, 63, 207} \[ -\frac {\tanh ^{-1}\left (\frac {\sqrt {a \sec ^2(x)}}{\sqrt {a}}\right )}{a^{3/2}}+\frac {1}{a \sqrt {a \sec ^2(x)}}+\frac {1}{3 \left (a \sec ^2(x)\right )^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 51
Rule 63
Rule 207
Rule 3657
Rule 4124
Rubi steps
\begin {align*} \int \frac {\cot (x)}{\left (a+a \tan ^2(x)\right )^{3/2}} \, dx &=\int \frac {\cot (x)}{\left (a \sec ^2(x)\right )^{3/2}} \, dx\\ &=\frac {1}{2} a \operatorname {Subst}\left (\int \frac {1}{(-1+x) (a x)^{5/2}} \, dx,x,\sec ^2(x)\right )\\ &=\frac {1}{3 \left (a \sec ^2(x)\right )^{3/2}}+\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{(-1+x) (a x)^{3/2}} \, dx,x,\sec ^2(x)\right )\\ &=\frac {1}{3 \left (a \sec ^2(x)\right )^{3/2}}+\frac {1}{a \sqrt {a \sec ^2(x)}}+\frac {\operatorname {Subst}\left (\int \frac {1}{(-1+x) \sqrt {a x}} \, dx,x,\sec ^2(x)\right )}{2 a}\\ &=\frac {1}{3 \left (a \sec ^2(x)\right )^{3/2}}+\frac {1}{a \sqrt {a \sec ^2(x)}}+\frac {\operatorname {Subst}\left (\int \frac {1}{-1+\frac {x^2}{a}} \, dx,x,\sqrt {a \sec ^2(x)}\right )}{a^2}\\ &=-\frac {\tanh ^{-1}\left (\frac {\sqrt {a \sec ^2(x)}}{\sqrt {a}}\right )}{a^{3/2}}+\frac {1}{3 \left (a \sec ^2(x)\right )^{3/2}}+\frac {1}{a \sqrt {a \sec ^2(x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 47, normalized size = 0.89 \[ \frac {\cos (3 x) \sec (x)+12 \sec (x) \left (\log \left (\sin \left (\frac {x}{2}\right )\right )-\log \left (\cos \left (\frac {x}{2}\right )\right )\right )+15}{12 a \sqrt {a \sec ^2(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.42, size = 94, normalized size = 1.77 \[ \frac {3 \, {\left (\tan \relax (x)^{4} + 2 \, \tan \relax (x)^{2} + 1\right )} \sqrt {a} \log \left (\frac {a \tan \relax (x)^{2} - 2 \, \sqrt {a \tan \relax (x)^{2} + a} \sqrt {a} + 2 \, a}{\tan \relax (x)^{2}}\right ) + 2 \, \sqrt {a \tan \relax (x)^{2} + a} {\left (3 \, \tan \relax (x)^{2} + 4\right )}}{6 \, {\left (a^{2} \tan \relax (x)^{4} + 2 \, a^{2} \tan \relax (x)^{2} + a^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.54, size = 53, normalized size = 1.00 \[ \frac {\arctan \left (\frac {\sqrt {a \tan \relax (x)^{2} + a}}{\sqrt {-a}}\right )}{\sqrt {-a} a} + \frac {3 \, a \tan \relax (x)^{2} + 4 \, a}{3 \, {\left (a \tan \relax (x)^{2} + a\right )}^{\frac {3}{2}} a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.46, size = 38, normalized size = 0.72 \[ \frac {\cos ^{3}\relax (x )+3 \cos \relax (x )+3 \ln \left (-\frac {-1+\cos \relax (x )}{\sin \relax (x )}\right )+4}{3 \cos \relax (x )^{3} \left (\frac {a}{\cos \relax (x )^{2}}\right )^{\frac {3}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.88, size = 48, normalized size = 0.91 \[ \frac {\cos \left (3 \, x\right ) + 15 \, \cos \relax (x) - 6 \, \log \left (\cos \relax (x)^{2} + \sin \relax (x)^{2} + 2 \, \cos \relax (x) + 1\right ) + 6 \, \log \left (\cos \relax (x)^{2} + \sin \relax (x)^{2} - 2 \, \cos \relax (x) + 1\right )}{12 \, a^{\frac {3}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 11.69, size = 46, normalized size = 0.87 \[ \frac {\frac {a\,{\mathrm {tan}\relax (x)}^2+a}{a}+\frac {1}{3}}{{\left (a\,{\mathrm {tan}\relax (x)}^2+a\right )}^{3/2}}-\frac {\mathrm {atanh}\left (\frac {\sqrt {a\,{\mathrm {tan}\relax (x)}^2+a}}{\sqrt {a}}\right )}{a^{3/2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cot {\relax (x )}}{\left (a \left (\tan ^{2}{\relax (x )} + 1\right )\right )^{\frac {3}{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________